<?php
/**
 * Created by PhpStorm.
 * User: PanChaoZhi
 * Date: 2017/1/24
 * Time: 17:39
 */

namespace app\controller;


use core\Run;

class viewController extends Run
{
    public function index()
    {
        /**
         * data 是视图的变量名称，$data是真实的变量名称
         */
        $data = "Test Data";
        $title = "第二个变量";
        $this->assign('data', $data);
        $this->assign('title', $title);
        $this->display('index.html');
    }
}